import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:winkai/entity/chat_msg.dart';
import 'package:winkai/ui/msg/widget/item/chat_msg_align_widget.dart';

class ChatMsgVideoWidget extends StatelessWidget {
  const ChatMsgVideoWidget({super.key, required this.message});

  final ChatMsg message;

  @override
  Widget build(BuildContext context) {
    return ChatMsgAlignWidget(
      isSend: message.isSend,
      children: [_buildVideoPlayer()],
    );
  }

  Widget _buildVideoPlayer() {
    return Container(
      width: 270.w,
      height: 270.w,
      alignment: Alignment.center,
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(15),
      ),
      child: const Icon(Icons.play_circle),
    );
  }
}
